package cc.wanforme.fsync.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/** 基于 cron 的定时任务 */
public class TickTask {
    @TableId(type = IdType.AUTO)
    private Long id;

    // task 名称
    private String name;

    // cron 表达式
    private String cron;

    // 备注
    private String mark;

    // 是否激活
    private Integer active = 1;

    // 正在执行 0-未执行，1-正在执行
    private Integer running = 0;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public Integer getRunning() {
        return running;
    }

    public void setRunning(Integer running) {
        this.running = running;
    }
}
